package com.travel.JPA;

import com.travel.Bean.Feedback;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FeedbackJPA extends JpaRepository<Feedback,Integer> {

    @Query("select f from feedback f where f.curture_id = ?1")
    List<Feedback> findAllByCultureId(Integer cultureId);

}
